<?php $this->load->view('admin/public');?>    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="http://studyci.com/index.php/admin/indexc/index">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">user管理</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="http://studyci.com/index.php/admin/userc/lst" method="get">
                    <table class="search-tab">
                        <tr>
                            <th width="70">用户名:</th>
                            <td><input class="common-text" placeholder="用户名" name="username" value="<?=$this->input->get('username');?>" type="text"></td>
                        </tr>
                        <tr>
                            <th width="70">密码:</th>
                            <td><input class="common-text" placeholder="密码" name="password" value="<?=$this->input->get('password');?>" type="text"></td>
                        </tr>
                        <tr>
                            <th width="70">注册时间:</th>
                            <td><input class="common-text" placeholder="注册时间" name="createtime" value="<?=$this->input->get('createtime');?>" type="text"></td>
                        </tr>
                        <tr>
                            <th width="70">性别:</th>
                            <td><input class="common-text" placeholder="性别" name="sex" value="<?=$this->input->get('sex');?>" type="text"></td>
                        </tr>
                        <tr>
                            <th width="70">年龄:</th>
                            <td><input class="common-text" placeholder="年龄" name="age" value="<?=$this->input->get('age');?>" type="text"></td>
                        </tr>
                                                <tr>
                        <td></td><td><input class="btn btn-primary btn2" value="查询" type="submit"></td></tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-title">
                    <div class="result-list">
                        <a href="http://studyci.com/index.php/admin/articlec/add"><i class="icon-font"></i>新增user</a>
                        <a id="batchDel" href="javascript:void(0)"><i class="icon-font"></i>批量删除</a>
                        <a id="updateOrd" href="javascript:void(0)"><i class="icon-font"></i>更新排序</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                                                           <td>ID</td>
                                                           <td>用户名</td>
                                                           <td>密码</td>
                                                           <td>注册时间</td>
                                                           <td>性别</td>
                                                           <td>年龄</td>
                                                      <td>操作</td>
                        </tr>
                        <?php foreach ($data->result('array') as $v):?>                        <tr>
                                                    <td><?=$v['id'];?></td>
                                                    <td><?=$v['username'];?></td>
                                                    <td><?=$v['password'];?></td>
                                                    <td><?=$v['createtime'];?></td>
                                                    <td><?=$v['sex'];?></td>
                                                    <td><?=$v['age'];?></td>
                                                    
                            <td>
                                <a class="link-update" href="<?=site_url('admin/userc/save/'.$v['id']);?>">修改</a>
                                <a class="link-del" onclick="return confirm('确定要删除吗');" href="<?=site_url('admin/userc/delete/'.$v['id']);?>">删除</a>
                            </td>
                        </tr>
                    <?php endforeach;?>                    </table>
                    <!-- 分页 -->
                    <div class="list-page"> <?=$page;?></div>
                </div>
            </form>
        </div>
    </div>
    <!--/main-->
</div>
</body>
</html>